DeleteScoreRange([the headChannel of gParadePartsList, the costumeChannel of gParadePartsList, the maskChannel of gParadePartsList], label("Captain start"), label("Captain end"), 1)
go(returnFrame)
end
on CreateScoreRange spriteChannel, spriteInkNum, beginPoint, endPoint, memberNumber, startframe, endframe, updateFlag
beginRecording()
if updateFlag = 1 then
set the updateLock to 1
end if
set theType to the type of member memberNumber
case theType of
#bitmap:
set theType to 1
#filmLoop:
set theType to 16
end case
set totalFrames to endframe - startframe + 1
if beginPoint = endPoint then
set positionOffset to point(0, 0)
else
set pointOffset to endPoint - beginPoint
set positionOffset to pointOffset / totalFrames
end if
go(startframe)
repeat with currentFrame = startframe to endframe
set the type of sprite spriteChannel to theType
set the memberNum of sprite spriteChannel to memberNumber
set beginPoint to beginPoint + positionOffset
set the loc of sprite spriteChannel to beginPoint
set the ink of sprite spriteChannel to spriteInkNum
updateFrame()
end repeat
if updateFlag = 1 then
set the updateLock to 0
end if
endRecording()
end
on DeleteScoreRange spriteList, startframe, endframe, updateFlag